package com.coolingme.genericity;

/**
 * Integer类
 *
 * @author wangyue
 * @date 2019/4/4 10:22
 */
public class GInteger {
    public GInteger(Integer age) {
        this.age = age;
    }

    private Integer age;

    public void hello() {
        System.out.println("C1的类型为:" + age.getClass().getName());
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "C1{" +
                "age=" + age +
                '}';
    }
}
